]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Fix syncing animations-enabled
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 17 Mar 2023 00:05:48 +0000 (01:05 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 19 Mar 2023 13:39:41 +0000 (13:39 +0000)
Whether or not animations should be enabled depends on various
factors, some of which may change at runtime. We therefore
track changes, and sync the setting by calling inhibit/uninhibit
as necessary.

Except that we never actually record the new state, so when animations
are disabled, we end up inhibiting them every time
the setting is synced, whoops.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2698>

js/ui/main.js

index 16c1eef9fe23ba8c442c7ac08a8d7f077dff722b..cf9357f0f8086669a4c2b47f8c33e7653fe110ad 100644 (file)
@@ -963,6 +963,7 @@ var AnimationsSettings = class {
         const shouldEnableAnimations = this._shouldEnableAnimations();
         if (this._animationsEnabled === shouldEnableAnimations)
             return;
+        this._animationsEnabled = shouldEnableAnimations;
 
         const settings = St.Settings.get();
         if (shouldEnableAnimations)